Filter hook 'rest_pre_insert_{$this->taxonomy}'

in WP Core File wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php at line 859

Description

Filters term data before inserting term via the REST API. The dynamic portion of the hook name, `$this->taxonomy`, refers to the taxonomy slug. Possible hook names include: - `rest_pre_insert_category` - `rest_pre_insert_post_tag`

Occurrences

Filename Line Number
wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php 859

Parameters

Type Name Description
object $prepared_term Term object.
WP_REST_Request $request Request object.

PHP Doc

/**
		 * Filters term data before inserting term via the REST API.
		 *
		 * The dynamic portion of the hook name, `$this->taxonomy`, refers to the taxonomy slug.
		 *
		 * Possible hook names include:
		 *
		 *  - `rest_pre_insert_category`
		 *  - `rest_pre_insert_post_tag`
		 *
		 * @since 4.7.0
		 *
		 * @param object          $prepared_term Term object.
		 * @param WP_REST_Request $request       Request object.
		 */